package com.wind.trademark.bill.model;
// default package


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * BlBill entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bl_bill", catalog = "mypro")
public class BlBill implements java.io.Serializable {

	// Fields

	private Long id;
	private String code;
	private Long taskId;
	private String status;
	private String currency;
	private Double amount=0.00;
	private Date deadline;
	private Long createBy;
	private Date createTime;
	private Long lastUpdateBy;
	private Date lastUpdateTime;
	private String description;
	private Date chargeoffTime;
	private Date paidTime;
	// Constructors






	/** default constructor */
	public BlBill() {
	}


	

	// Property accessors
	@Id
	@GeneratedValue(generator = "generator")    
	@GenericGenerator(name = "generator", strategy = "increment") 
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	@Column(name = "CURRENCY", length = 10)
	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	@Column(name = "CODE", length = 200)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "CREATE_BY", nullable = false)
	public Long getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}



	@Column(name = "TASK_ID")
	public Long getTaskId() {
		return this.taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	@Column(name = "STATUS", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "AMOUNT", nullable = false  )
	public Double getAmount() {
		return this.amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	@Column(name = "DEADLINE", length = 19)
	public Date getDeadline() {
		return this.deadline;
	}

	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}

	@Column(name = "CREATE_TIME", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_BY", nullable = false)
	public Long getLastUpdateBy() {
		return this.lastUpdateBy;
	}

	public void setLastUpdateBy(Long lastUpdateBy) {
		this.lastUpdateBy = lastUpdateBy;
	}

	@Column(name = "LAST_UPDATE_TIME", nullable = false, length = 19)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	@Column(name = "DESCRIPTION", length = 800)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	@Column(name = "CHARGEOFF_TIME" , length = 19)
	public Date getChargeoffTime() {
		return chargeoffTime;
	}



	
	public void setChargeoffTime(Date chargeoffTime) {
		this.chargeoffTime = chargeoffTime;
	}



	@Column(name = "PAID_TIME" , length = 19)
	public Date getPaidTime() {
		return paidTime;
	}
	public void setPaidTime(Date paidTime) {
		this.paidTime = paidTime;
	}
	
}